Skip to content
  • 0 Votes
    3 Posts
    2k Views
    D

    Yes, it's working now.

    Flickable { ... clip: true boundsBehavior: Flickable.StopAtBounds ... }

    Thanks.

  • 1 Votes
    5 Posts
    7k Views
    T

    I know it's been a few years, but this might still be helpful to someone :)

    For me, this approach works:

    delegate: MyDelegate { MouseArea { id: _mouseArea anchors.fill: parent } Binding { when: _mouseArea.pressed target: _listView property: "interactive" value: false } }

    With this setup, you should be able to scroll the list view using the scroll wheel. When you perform a press-and-drag gesture, it will disable the scrolling or flicking behavior. Once you release the mouse button, the binding will be restored, making the list view interactive again, so you can scroll with the mouse wheel once more.

    Even when you have multiple elements (i.e., instantiated delegates), dragging across them won't reset the interactive property until you release the mouse button.

  • 0 Votes
    4 Posts
    4k Views
    CharbyC

    @lqsa In think you could use a Behavior on ContentY.

    Would this give you want ?

    import QtQuick 2.0 import QtQuick.Window 2.0 Window{ visible:true; Flickable { width: 100; height: 150 contentWidth: 300; contentHeight: 300 Behavior on contentY{ NumberAnimation { duration: 1000 easing.type: Easing.OutBounce } } Timer{ running: true; interval: 1500 repeat: true onTriggered:{ if (parent.contentY==0) parent.contentY=300; else parent.contentY=0; } } Rectangle { width: 300; height: 300 gradient: Gradient { GradientStop { position: 0.0; color: "lightsteelblue" } GradientStop { position: 1.0; color: "blue" } } } } }